package com.cc.boot.quick.controller;

import com.cc.boot.quick.model.User;
import com.cc.boot.quick.model.Users;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 新梦想.陈超
 * @version 2021.2
 * @Description: {TODO}
 * @date 2022/5/10 下午1:05
 */
@RestController
public class HelloController {
    @Resource
   User user;

    @Resource
    Users users;
    @GetMapping("/hello")
    public String hello(){
        return "hello spring boot!";
    }

    @GetMapping("/user")
    public User user(){
        return user;
    }

    @GetMapping("/users")
    public Users users(){
        return users;
    }
}
